/**
 * 
 */
package wpmp.extjs3.data;

import java.io.Serializable;

/**
 * JsonStore.load() submit this data style
 * 
 * <pre>
 * jsonStore.load({
 * });
 * </pre>
 * 
 * @author Wayne.Wang<5waynewang@gmail.com>
 * @since 10:06:36 AM, Jun 22, 2011
 */
public class Page implements Serializable {

	private static final long serialVersionUID = 1L;

	private int start; // 起始记录索引，从0开始

	private int limit; // 显示记录

	private String sort; // 排序字段

	private String dir; // 排序类型

	public static final String ASC = "ASC";
	public static final String DESC = "DESC";

	public Page() {
	}

	public Page(int start, int limit, String sort, String dir) {
		this.start = start;
		this.limit = limit;
		this.sort = sort;
		this.dir = dir;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getDir() {
		return dir;
	}

	public void setDir(String dir) {
		this.dir = dir;
	}
}
